package com.yulan.bankback.mapper.admin.systemExprience;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yulan.bankback.entity.model.admin.systemExperience.UserUseTime;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserUseTimeMapper extends BaseMapper<UserUseTime> {

    @Select("select * from user_use_time where time > NOW() - INTERVAL ${interval} ")
    List<UserUseTime> getIntervalUserUseTime(String interval);
}
